#!/bin/bash

# 根据环境变量决定构建哪些平台
TARGETS=${BUILD_TARGETS:-"windows linux macos android ios"}

for target in $TARGETS; do
  case $target in
    windows)
      echo "Building for Windows..."
      ./build_scripts/build_windows.sh
      ;;
    linux)
      echo "Building for Linux..."
      ./build_scripts/build_linux.sh
      ;;
    macos)
      echo "Building for macOS..."
      ./build_scripts/build_macos.sh
      ;;
    android)
      echo "Building for Android..."
      ./build_scripts/build_android.sh
      ;;
    ios)
      echo "Building for iOS..."
      ./build_scripts/build_ios.sh
      ;;
  esac
done